package com.school.fuyuan.common.message;

import lombok.*;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author zrhong
 * @version 1.0
 * @date 2019/3/3 20:31
 * @description
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class RequestMsg<T> {

    @Valid
    private RequestHead head;

    @Valid
    @NotNull(message = "data不能为null")
    private T data;
}
